package com.sh.装饰器模式.one;

import com.sh.装饰器模式.one.impl.BasicServerHttpResponse;
import com.sh.装饰器模式.one.impl.LoggingServerHttpResponseDecorator;

public class Main {
    public static void main(String[] args) {
        ServerHttpResponse response = new BasicServerHttpResponse();
        ServerHttpResponse decoratedResponse = new LoggingServerHttpResponseDecorator(response);

        decoratedResponse.write("Hello, World!");
    }
}
